import {
	http
} from '../request/index.js';
// 首页banner图
export const banner = (params) => {
	return http.post('/api/fitness.banner/lists', params);
}
// 获取套餐课程
export const getList = (params) => {
	return http.get('/api/fitness_course_package/getList', params);
}
// 获取课程列表
export const getCourseList = (params) => {
	return http.get('/api/user/course', params);
}
// 套餐详情
export const details = (params) => {
	return http.get('/api/user/courseInfo', params);
}
// 购买课程
export const course_pay = (params) => {
	return http.post('/api/fitness_course_package/pay', params);
}
// 获取预约课程
export const getUserCourse = (params) => {
	return http.get('/api/user/getUserCourse', params);
}
//门店详情
export const shopDetail = (params) => {
	return http.get('/api/fitness.shop/detail?', params);
}
//选择日期
export const getTime = (params) => {
	return http.get('/api/fitness.teacher/getTime', params);
}
//公告列表
export const notice = (params) => {
	return http.get('/api/notice/getList', params);
}
//公告详情
export const noticeDetails = (params) => {
	return http.get('/api/notice/details', params);
}
//获取配置
export const getConfig = (params) => {
	return http.get('/api/user/getConfig', params);
}
//判断门店是否到期
export const getShopTime = (params) => {
	return http.get('/api/user/getShopTime', params);
}
//预约课程
export const courseReservation = (params) => {
	return http.post('/api/fitness_course_reservation/add', params);
}